package com.pig.graduate.domain.produce;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig.graduate.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * (ProducePig)表实体类
 *
 * @author makejava
 * @since 2023-03-13 16:32:25
 */
@Data
public class ProducePig extends BaseEntity {

    //所在位置
    private Long columnId;
    @TableField(exist = false)
    private String columnName;
    //猪群号
    private String herdsPigsCode;
    //数量
    private Integer pigNumber;
    //平均日龄
    private String averageDayAge;
    //是否在场
    private String isPresent;
    //栋舍
    private Long buildingsId;
    @TableField(exist = false)
    private String buildingsName;

    //所在位置
    @TableField(exist = false)
    private String location;
    /**
     * 出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING ,pattern ="yyyy-MM-dd HH:mm:ss")
    private Date birthDate;

}

